﻿@{
    ViewBag.Title = "DwzCssListRenderBody";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<link href="@Url.Content("~/Scripts/dp.SyntaxHighlighter/Styles/SyntaxHighlighter.css")/"
    rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/dp.SyntaxHighlighter/Scripts/shCore.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/dp.SyntaxHighlighter/Scripts/shBrushCSharp.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/dp.SyntaxHighlighter/Scripts/shBrushXml.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/dp.SyntaxHighlighter/Scripts/shBrushJScript.js")" type="text/javascript"></script>
<script language="javascript">
    $(function () {
        dp.SyntaxHighlighter.HighlightAll('code');
    });
</script>
<h2>
    实体集代码生成</h2>

<textarea name="code" class="csharp" rows="15" cols="100">
@RenderBody()
</textarea>

<h2>实体集信息</h2>
<ul>
    @foreach (var item in Model.Properties)
    {
        <li>
            @item.Name (@item.PropertyType.Name)
            @if (item.PropertyType.IsGenericType)
            { 
                @item.PropertyType.GetGenericArguments()[0].Name
            }
        </li>
    }
</ul>
